

package kr.ac.ssu.yoobh17.mPlayer;


import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import com.actionbarsherlock.app.SherlockActivity;


public class LoadingActivity extends SherlockActivity {

	@Override
	public void onCreate( Bundle savedInstanceState ) {

		super.onCreate( savedInstanceState );
		setContentView( R.layout.activity_loading );
		

//		Intent intentToMusicService = new Intent( getApplicationContext(), kr.ac.ssu.yoobh17.mPlayer.musicService.MusicService.class );
//		intentToMusicService.setAction( GlobalClass.SERVICE_ACTION_FROM_LOADING );
//		startService( intentToMusicService );

//		startActivity( new Intent( LoadingActivity.this, MusicListActivity.class ) );
//		finish();


		new Handler() {

			@Override
			public void handleMessage( Message msg ) {

				// TODO Auto-generated method stub
//				super.handleMessage( msg );
				

				startActivity( new Intent( LoadingActivity.this, MusicListActivity.class ) );

				finish();

			}
		}.sendEmptyMessageDelayed( 0, 100 );

	}

	@Override
	public void onBackPressed() {

		// TODO Auto-generated method stub

		super.onBackPressed();

	}

}
